package com.example.demo.po.user;

import com.example.demo.vo.user.UserVO;
import lombok.Data;

@Data
public class User {
    private Integer uid;

    private String username;

    private String password;

    private int role;//0： 管理员 1：发包方 2：雇员

    private double ability;

    private int preferencePerformance;

    private int preferenceFunction;

    private int deviceWindows;

    private int deviceMac;

    private int deviceLinux;

    private int deviceAndroid;

    private int deviceIos;

    private int takeTaskNum;

    private double diversity;
    //默认的空构造函数必须有
    public User(){

    }

    public User(UserVO userVO) {
        this.username = userVO.getUsername();
        this.password=userVO.getPassword();
        this.role=userVO.getRole();
    }
}
